﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<FunBox.ViewModels.TeamIndexViewModel>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
    Index
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <h2>
        Index</h2>
    <h3>
        Browse Genres</h3>
    <p>
        Select from
        <%: Model.NumberOfTeams  %>
        genres:</p>
    <ul>
        <% foreach (string team in Model.Teams)
           { %>
        <li><a href="<%: team.ToString() %>/">
            <%: team.ToString()  %></a> <a href='<%:"edit/"+team.ToString() %>/'>Edit</a>
        </li>
        <%  
           } %>
    </ul>
    <div>
        <% Html.RenderPartial("FixturesAll", ViewData["Fixtures"]); %>
    </div>
</asp:Content>
